package routers

import (
	"github.com/gin-gonic/gin"
	"zhanyan/controller"
)

func SeatRoute(r *gin.Engine) {
	seat := r.Group("/seat")
	{

		seat.GET("/getSeats", controller.GetSeats)
		seat.GET("/studentIsBind", controller.StudentIsBind)
		seat.POST("/addOnClass", controller.AddOnClass)
		seat.POST("/addOnStudent", controller.AddOnStudent)
		seat.PUT("/updateOnStudent", controller.UpdateOnStudent)
		seat.DELETE("/deleteOnStudent/:id", controller.DeleteOnStudent)
		seat.DELETE("/deleteOnClassroom/:id", controller.DeleteOnClassroom)
		seat.DELETE("/deleteOneSeat/:id", controller.DeleteOneSeat)
	}
}
